//
//  SlowBlood.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-6-19.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"

@interface SlowBlood : CCNode
{
    CCSprite* _bgSprite;
    CCProgressTimer* _slowTimer;
    CCProgressTimer* _bloodTimer;
    float _width;
    float _height;
    
}

+(id) bloodWithBG:(NSString*)bgFrameName 
             slow:(NSString*)slowFrameName 
            blood:(NSString*)bloodFrameName;
           
-(id) initWithBG:(NSString*)bgFrameName 
            slow:(NSString*)slowFrameName 
           blood:(NSString*)bloodFrameName;

-(void) setProgress:(int)progress duration:(ccTime)duration;
-(CCTexture2D*) sprite2Texture2D:(CCSprite*)sprite;

- (void)secondUpdate;

@property (readwrite) float width; 
@property (readwrite) float height; 

@end
